import {
  createRouter,
  createWebHistory
} from 'vue-router'
import Home from '../views/home/home.vue'

const routes = [{
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/index',
    name: 'index',

    component: () => import('../views/index/index.vue')
  },
  {
    path: '/fen',
    name: 'fen',

    component: () => import('../views/fen/fen.vue')
  },
  {
    path: '/shop',
    name: 'shop',

    component: () => import('../views/shop/shop.vue')
  },
  {
    path: '/wo',
    name: 'wo',

    component: () => import('../views/wo/wo.vue')
  },
  {
    path: '/search',
    name: 'search',

    component: () => import('../views/search/index.vue')
  },
  //  {
  //   path: '/index',
  //  name: 'index',

  //  component: () => import( '../views/index/index.vue')
  //   }
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router